package com.my.study.design.rule;

import com.my.study.design.rule.support.NameConditionRule;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: yidujun
 * @create: 2021/07/12 09:58
 */
public class RuleTest {

    @Test
    public void testConditionRule() {
        List<IRule> list = new ArrayList<>();
        list.add(new NameConditionRule());
        RulesExecutor executor = new RulesExecutor(list);
        Object ydj = executor.execute("");
        System.out.println(ydj);
    }

}
